package com.hejing.project03_优尚开发团队人员调度系统.domain;

/**
 * ClassName: Printer
 * Package: com.hejing.project03_优尚开发团队人员调度系统.domain
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-12 10:53
 * @Version: 1.0
 */
public class Printer implements Equipment{

    // 属性
    private String name;  // 打印机名称
    private String type;  // 机器类型

    // 构造器
    public Printer() {
    }

    public Printer(String name, String type) {
        this.name = name;
        this.type = type;
    }

    // get set

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    // toString


    @Override
    public String getDescription() {
        return name + "(" + type + ")";
    }
}























